package fmglemmings;

import java.util.HashMap;
import javax.swing.*;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.logging.*;

public class ViewController {
	


        private static Logger logger = Logger.getLogger("fmglemmings");
	public void fileName(String fileName) {
	}

	public ViewController(){
                loggerinit();
//		fillRajzolok();
		MainFrame main = new MainFrame();
                main.setVisible(true);
	}
        
        
        /**
	 * A logger
	 */
	private void loggerinit(){
		try{
//			FileHandler fh = new FileHandler("lemming.log");
//			StreamHandler fh = new StreamHandler();
//			logger.setUseParentHandlers(false);
			ConsoleHandler fh = new ConsoleHandler();
			fh.setFormatter(new SimpleFormatter());
//			logger.getLogger("fmglemmings").addHandler(fh);
			logger.setLevel(Level.ALL);
		} catch (Exception e) {
			System.out.println("A logger nem indult el!\nLogger nelkul nem elet az elet...");
			System.exit(1);
		}
		logger.info("A logger elindult");
	}
        
        public static void main(String[] args) {
		ViewController game = new ViewController();
	}
        
}

